import request from '../utils/request';

export const selectfood = () => {
    return request({
        url: '/food',
        method: 'get', 
    });
};

export const clientselectfood = () => {
    return request({
        url: '/clientfood',
        method: 'get', 
    });
};

export const addfood = (data) => {
    return request({
        url: '/food',
        method: 'post', 
        data:data , 
    });
};

export const updatefood = (data) => {
    return request({
        url: '/food',
        method: 'put', 
        data:data , 
    });
};
export const deletefood = (data) => {
    return request({
        url: '/food',
        method: 'delete', 
        data:data , 
    });
};

